<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        console.log(number);
        var number=10
        // 在浏览器中的运行为 变量提升
        var number;
        console.log(number)
        number=10
    </script>
</body>
</html>